<div class="entry-btns">
	<h2 class="text-center text-info">登录到范围</h2>
	<p class="text-danger"><?php echo $error;?></p>
	<form action="<?php echo site_url('login/verify');?>" method="post" id="f">
		<input type="text" class="login-input" name="username" id="username" placeholder="Username" oninput="c()">
		<input type="password" class="login-input" name="password" id="password" placeholder="Password" oninput="c()">
		<div class="text-center">
			<br>
			<button type="submit" class="login-button text-muted" disabled>
				<span class="fa-stack fa-2x">
					<i class="fa fa-arrow-right fa-stack-1x"></i>
					<i class="fa fa-circle-o fa-stack-2x"></i>
				</span>
			</button>
		</div>
	</form>
</div>
<script>
// c();
function c() {
	var btn = $('button');
	if ($('#username').val().length <= 0 && $('#password').val().length <=0) {
		btn.attr('disabled', true);
		btn.removeClass('text-info');
		btn.addClass('text-muted');
	} else {
		btn.attr('disabled', false);
		btn.removeClass('text-muted');
		btn.addClass('text-info');
	}
}
</script>